package com.taotao.slink.model.entity;

import com.alibaba.fastjson.JSON;
import com.gitee.fastmybatis.annotation.Pk;
import com.gitee.fastmybatis.annotation.PkStrategy;
import com.gitee.fastmybatis.annotation.Table;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.time.LocalDate;
import java.time.LocalDateTime;



/**
* 日访问量统计
* @author youbeiwuhuan
* @date   2023-06-27 12:08:05
*/
@Data
@Table(name = "day_visit",pk = @Pk(name = "id", strategy = PkStrategy.NONE))
public class DayVisit {

	/**
	* 
	*/
	@ApiModelProperty(value="")
	private Long id;
	/**
	* 短链接编码
	*/
	@ApiModelProperty(value="短链接编码")
	private String shortLinkCode;
	/**
	* 日期
	*/
	@ApiModelProperty(value="日期")
	private LocalDate day;
	/**
	* 访问次数
	*/
	@ApiModelProperty(value="访问次数")
	private Integer visitCount;
	/**
	* 创建时间
	*/
	@ApiModelProperty(value="创建时间")
	private LocalDateTime createTime;
	/**
	* 更新时间
	*/
	@ApiModelProperty(value="更新时间")
	private LocalDateTime updateTime;

	private Long version;

	@Override
	public String toString() {
	return JSON.toJSONString(this);
	}

}